# Maintainer:  Zsolt Kajtar <soci at c64.rulez.org>

_realname=64tass
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=1.60.3243
pkgrel=1
pkgdesc="64tass is cross (turbo) assembler targeting the MOS 65xx series of micro processors (6502/65C02/R65C02/W65C02/65CE02/65816/DTV/65EL02/4510/45GS02)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
msys2_references=(
  'aur: tass64'
)
url="https://tass64.sourceforge.net/"
license=('GPLv2')
depends=()
makedepends=("${MINGW_PACKAGE_PREFIX}-cc")
source=("https://sourceforge.net/projects/tass64/files/source/${_realname}-${pkgver}-src.zip")
sha256sums=('9d83be3d23a2c55e085b7c7a7856c2f96080447ea120a6a8c21a217ed76427f0')

prepare()
{
  cd "${srcdir}/${_realname}-${pkgver}-src"
}

build()
{
  cd "${srcdir}/${_realname}-${pkgver}-src"
  make
}

package()
{
  cd "${srcdir}/${_realname}-${pkgver}-src"
  make install DESTDIR="${pkgdir}" prefix="${MINGW_PREFIX}"
}
